﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using The_Last_Knights.GUI;

namespace The_Last_Knights.GameScreen
{
    public class CreditScreen: StaticScreen
    {
        private NormalForm _form;

        public NormalForm Form
        {
            get { return _form; }
            set { _form = value; }
        }

        public CreditScreen(Game game, string ID, string background, NormalForm normalForm) 
            : base(game, ID, background)
        {
            _form = normalForm;
        }

        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
            if (_form != null)
                _form.Draw(gameTime);
        }

        public override void Update(GameTime gameTime)
        {
            if (_form != null)
                _form.Update(gameTime);
            base.Update(gameTime);
        }
    }
}
